home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.save / 000104_clamat@telus.net_Mon Jul 23 14:45:41 2007.msg < prev    next >
Internet Message Format  |  2020-01-01  |  1KB

  1. Path: reader2.panix.com!panix!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps89.POSTED!53ab2750!not-for-mail
  2. Newsgroups: comp.protocols.kermit.misc
  3. From: Matthew Clarke <clamat@telus.net>
  4. Subject: Re: kermit script and unix arguments
  5. References: <1184013722.056689.209050@r34g2000hsd.googlegroups.com>
  6. User-Agent: nn/6.7.3
  7. Lines: 21
  8. Message-ID: <JUyki.20761$Io4.15605@edtnps89>
  9. Date: Mon, 09 Jul 2007 22:46:01 GMT
  10. NNTP-Posting-Host: 207.6.28.90
  11. X-Trace: edtnps89 1184021161 207.6.28.90 (Mon, 09 Jul 2007 16:46:01 MDT)
  12. NNTP-Posting-Date: Mon, 09 Jul 2007 16:46:01 MDT
  13. Xref: panix comp.protocols.kermit.misc:15675
  14.  
  15. mortier <mortier@locean-ipsl.upmc.fr> writes:
  16.  
  17. >Hello,
  18. >
  19. >I want to use a kermit script starting with #!/usr/bin/kermit +
  20. >with a line of argument (which can be empty). How the check if there
  21. >are actually arguments ? In the case where there are arguement, how to
  22. >put then in local kermit variables? In fact, how to mimic with kermit
  23. >the linux
  24. >while getops "options here" option ; do ... ?
  25. >
  26. >Thanks a lot for help, Laurent
  27.  
  28. According to "Using C-Kermit" (2nd edition), \v(args) holds the number of
  29. arguments and the array \&@[] holds the arguments themselves.
  30.  
  31. See http://www.columbia.edu/kermit/scriptlib.html for example scripts,
  32. many of which have code to parse command-line arguments.
  33. -- 
  34. Snappy Quote:  "abcdefghijklmnopqrstuvwxyz"*
  35.                         *some assembly required